import request from "@/router/axios";

export function fetchGetRecipientsList(obj) {
  return request({
    url: "/eims/takeInventory/getRecipientsOfOutboundPage",
    method: "get",
    params: obj
  });
}
//获取领用出库详情
export function getTakeInventoryInfo(id) {
  return request({
    url: "/eims/takeInventory/getInfo/" + id,
    method: "get"
  });
}

//新增领用出库
export function addRecipients(obj) {
  return request({
    url: "/eims/takeInventory/saveRecipients",
    method: "post",
    data: obj
  });
}

//修改领用出库
export function editRecipientsOfOutbound(obj) {
  return request({
    url: '/eims/takeInventory/editOutboundInfo',
    method: 'put',
    data: obj
  })
}

//审核领用出库
export function auditRecipientsOfOutbound(id) {
  return request({
    url: '/eims/takeInventory/audit/' + id,
    method: 'get',
    params: id
  })
}


//删除
export function delObj(id) {
  return request({
    url: '/eims/takeInventory/' + id,
    method: 'delete'
  })
}
